package na.learn.java.threads;

/**
 * This class is uses composition to contain following: 1. value object
 * passed in the (key,value) pair, 2. Its time of birth 3. and time to live.
 * 
 * This Object will be stoped in HashMap against key passed.
 * 
 * @author nagrawal2
 */
public class CompositeValue {

	// Value Object.
	private Object value;

	private CompositeTime compositeTime;

	CompositeValue(Object value, CompositeTime time) {
		this.value = value;
		this.compositeTime = time;
	}

	public Object getValue() {
		return value;
	}

	public void setValue(Object value) {
		this.value = value;
	}

	public CompositeTime getCompositeTime() {
		return compositeTime;
	}

}
